package tw.asap.plus.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Description:
 * Created:      [15/11/18]
 * Author:       [Yang]
 **/
public class OrderList implements Parcelable {

    public ArrayList<OrderCreated> orderCreatedArrayList;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(orderCreatedArrayList);
    }

    public OrderList() {
    }

    protected OrderList(Parcel in) {
        this.orderCreatedArrayList = in.createTypedArrayList(OrderCreated.CREATOR);
    }

    public static final Parcelable.Creator<OrderList> CREATOR = new Parcelable.Creator<OrderList>() {
        public OrderList createFromParcel(Parcel source) {
            return new OrderList(source);
        }

        public OrderList[] newArray(int size) {
            return new OrderList[size];
        }
    };
}
